package curves;

import java.awt.Color;

import javax.swing.border.EtchedBorder;

public class CurveInfosUser extends CurveInfos {
	private static final long serialVersionUID = 1L;
	private static final Color NULL = null;

	private CurveTracerUser ctu = null;
	
	CurveInfosUser(FunctionVariations fvar, CurveTracerUser ctu) {
		super(fvar);
		
		this.ctu = ctu;
		
		setBackground(NULL);
		this.setBorder(new EtchedBorder());
		
	}

		
	void update() {
		xmin.setText("xmin = " + ctu.getXmin());
		xmax.setText("xmax = " + ctu.getXmax());
		ymin.setText("ymin = " + ctu.getYmin());
		ymax.setText("ymax = " + ctu.getYmax());
		xmouse.setText("");
		ymouse.setText("");
		integral.setText("sum = " + fvar.getIntegral());
	}
	
	
}
